﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameFramework.ModelManager.SkinnedModelPipeline;

namespace MyRaceGame.GameLogic
{
    public class RacerAnimationPlayer : SkinnedAnimationPlayer
    {
        public RacerAnimationPlayer(RacerCharacter racer, string idleAnimation, string walkAnimation,
            string runAnimation)
            : base(racer.Model.Tag as SkinningData)
        {
            this.idleAnimation = idleAnimation;
            this.walkAnimation = walkAnimation;
            this.runAnimation = runAnimation;
        }

        public string CurrentAnimation
        {
            set { StartClip(value, true); }
        }

        string idleAnimation;

        public string IdleAnimation
        {
            get { return idleAnimation; }
            set { idleAnimation = value; }
        }
        string walkAnimation;

        public string WalkAnimation
        {
            get { return walkAnimation; }
            set { walkAnimation = value; }
        }
        string runAnimation;

        public string RunAnimation
        {
            get { return runAnimation; }
            set { runAnimation = value; }
        }
    }
}
